﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PWMIS.Common;
namespace FTchina.Logic
{
    /// <summary>
    ///DBType 的摘要说明
    /// </summary>
    public class DBTypeLogic
    {
        public DBTypeLogic()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }
        public static DBMSType getDbmsTypeByString(string dbtype)
        {
            DBMSType t;
            switch (dbtype)
            {
                case "SqlServer": t = DBMSType.SqlServer; break;
                case "Oracle": t = DBMSType.Oracle; break;
                case "SQLite": t = DBMSType.SQLite; break;
                case "PostgreSQL": t = DBMSType.PostgreSQL; break;
                case "Sysbase": t = DBMSType.Sysbase; break;
                case "MySql": t = DBMSType.MySql; break;
                //case "DB2": t = DBMSType.DB2; break;
                default: t = DBMSType.SqlServer; break;
            }

            return t;
        }
    }
}